package com.uduemc.biso.web.dto;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString()
public class LoginForm {

	@NotBlank(message="用户名不能为空！")
	@Length(min = 4, message="用户名不能小于4位字符！")
	private String account;
	@NotBlank(message="密码不能为空！")
	@Length(min = 4, message="密码不能小于4位字符！")
	private String password;

}
